import request from '@/utils/request.js'
//注册
export const register = (obj) => {
  return request.post('/api/reg', obj)
}
//登录
export const login = (obj) => {
  return request.post('/api/login', {
    username: obj.username,
    password: obj.password
  })
}
